import {Component} from '@angular/core';

@Component({
  selector: 'app-market-list',
  templateUrl: './market-list.component.html',
  styleUrl: './market-list.component.scss'
})
export class MarketListComponent {
  protected headerTitle: string = "市场调度";
  mkList: IMarketList[] = [];

  constructor() {
    this.mkList = [
      {
        name: "市场调度次数",
        price: 25,
        unit: "次"
      },
      {
        name: "市场调度电量",
        price: 40,
        unit: "kWh"
      },
      {
        name: "市场调度成本",
        price: 250,
        unit: "元"
      },
      {
        name: "市场调度收益",
        price: 200,
        unit: "元"
      }
    ]
  }
}

interface IMarketList {
  name: string;
  price: number;
  //单位
  unit: string;
}
